import { ISchema } from '@formily/react'

export const Result: ISchema = {
  type: 'object',
  properties: {
    status: {
      type: 'string',
      enum: ['success', 'error', 'info', 'warning', '404', '403', '500'],
      'x-decorator': 'FormItem',
      'x-component': 'Select',
      'x-component-props': {
        defaultValue: 'info',
      },
    },
    title: {
      type: 'string',
      'x-decorator': 'FormItem',
      'x-component': 'Input',
    },
    subTitle: {
      type: 'string',
      'x-decorator': 'FormItem',
      'x-component': 'Input',
    },
    extra: {
      type: 'void',
      'x-decorator': 'FormItem',
      'x-component': 'SlotSetter',
    },
  },
}
